<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: SINGLEDOG
  Date: 2019/9/27
  Time: 16:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="icon" href="http://localhost:8080/mydev/images/logo_D.ico">
    <link rel="stylesheet" href="http://localhost:8080/mydev/css/Mytravels.css">
    <link rel="stylesheet" href="http://localhost:8080/mydev/css/histravels.css">
    <script src="http://localhost:8080/mydev/js/jquery-3.4.1.js"></script>
    <script type="application/javascript" src="http://localhost:8080/mydev/layui/layui.js"></script>
    <link rel="stylesheet" href="http://localhost:8080/mydev/layui/css/layui.css">
    <link rel="stylesheet" href="http://localhost:8080/mydev/dist/css/bootstrap.css">
    <link rel="stylesheet" href="http://localhost:8080/mydev/dist/css/bootstrap-theme.css">
    <script src="http://localhost:8080/mydev/dist/js/bootstrap.js"></script>
    <style>
        .layui-nav .layui-nav-item a{
            font-size: 20px!important;
        }
    </style>
</head>
<body>
<!--导航-->
<c:choose>
    <c:when test="${memberall.userId != 0}">
        <c:if test="${memberall.userStatus == 0}">
            <img src="http://localhost:8080/mydev/images/vip.png" style="position:absolute;top:23px;right: 345px;z-index: 999;">
        </c:if>
        <c:if test="${memberall.userStatus == 1}">
            <a href="http://localhost:8080/mydev/VIP" style="position:absolute;top:13px;right: 400px;z-index: 999;">开通vip</a>
        </c:if>
    </c:when>
</c:choose>
<div class="header-container" style="width: 100%; min-width: 1500px;  ">

    <div class="row first-div" style="z-index: 999; width: 100%">
        <div class=" left-nav-ul" >
        </div>


        <ul class="mid-nav-ul" >
            <li class="nav-ul-li" >
                <a   style="text-decoration: none" href="http://localhost:8080/mydev/start/index">
                    <div>
                        <img src="http://localhost:8080/mydev/images/logo.png">
                        逍遥游
                    </div>
                </a>

            </li>
            <li class="nav-ul-li" style="background-color: #ff9d00">
                <a style="text-decoration: none;color: #ffffff" href="http://localhost:8080/mydev/start/index">首页</a>
            </li>
            <li class="nav-ul-li">
                <a  style="text-decoration: none" href="http://localhost:8080/mydev/QuestionTable/club_questions">问答</a>
            </li>

            <li class="nav-ul-li">
                <a   style="text-decoration: none" href="http://localhost:8080/mydev/clublist/list">鲲鹏俱乐部</a>
            </li>

            <li class="nav-ul-li new">
                <div class="geren">
                    <a  style="text-decoration: none; color:black" href="">更多</a>
                    <div class="t1"></div>
                </div>
                <div class="hidden1">
                    <ul class="geren-ul">
                        <li>
                            <a  style="text-decoration: none" href="http://localhost:8080/mydev/write/travel">写游记</a>
                        </li>
                        <li>
                            <a  style="text-decoration: none"  href="http://localhost:8080/mydev/myhome/mytravel/${memberall.userId}">我的游记</a>
                        </li>
                    </ul>
                </div>
            </li>

            <li class="nav-ul-li" >
                <c:choose>
                    <c:when test="${memberall.userId != 0}">
                        <c:if test="${memberall.userStatus ==0}">
                             <span  style="color: gold">
                                 欢迎!${memberall.userName}
                             </span>
                        </c:if>
                        <c:if test="${memberall.userStatus ==1}">
                             <span  style="color: black">
                                 欢迎!${memberall.userName}
                             </span>
                        </c:if>


                    </c:when>
                    <c:otherwise>
                        <a  style="text-decoration: none" href="http://localhost:8080/mydev/regist/normalRegist">注册</a>
                    </c:otherwise>
                </c:choose>

            </li>
            <li class="nav-ul-li">
                <c:choose>
                    <c:when test="${memberall.userId != 0}">

                    </c:when>
                    <c:otherwise>
                        <a  style="text-decoration: none" href="http://localhost:8080/mydev/login/login">登陆</a>
                    </c:otherwise>
                </c:choose>


            </li>
        </ul>




        <c:choose>
            <c:when test="${memberall.userId != 0}">

                <div class="right-nav-ul" >
                    <div class="topmaguser" style="  position:relative;left: 0px;top:2px">


                        <a href="http://localhost:8080/mydev/myhome/mytravel/${memberall.userId}" >
                            <img src="http://localhost:8080/mydev/${memberall.userPicture}">
                        </a>

                    </div>
                    <ul class="right-mid" >
                        <li class="nav-ul-li new" >

                            <div class="geren">

                                <a style="text-decoration: none; color:black" href="">个人中心</a>

                                <div class="t2"></div>
                            </div>

                            <div class="hidden1">
                                <ul class="gere-ul">

                                    <li style="height: 45px;">
                                        <a  style="text-decoration: none" href="http://localhost:8080/mydev/myfoot/collect/${memberall.userId}"><img src="http://localhost:8080/mydev/images/savea.png">我的收藏</a>
                                    </li>
                                    <li style="height: 45px;">
                                        <a  style="text-decoration: none" href="http://localhost:8080/mydev/myfoot/mapview/${memberall.userId}"><img src="http://localhost:8080/mydev/images/foot.png">我的足迹</a>
                                    </li>
                                    <li style="height: 45px;">
                                        <a  style="text-decoration: none" href="http://localhost:8080/mydev/myfoot/answer/${memberall.userId}"><img src="http://localhost:8080/mydev/images/question.png">我的问答</a>
                                    </li>
                                    <li style="height: 45px;">
                                        <a  style="text-decoration: none" href="http://localhost:8080/mydev/reply/toaccount/${memberall.userId}"><img src="http://localhost:8080/mydev/images/question.png">回复消息</a>
                                    </li>

                                    <li style="height: 45px;">
                                        <a  style="text-decoration: none" href="http://localhost:8080/mydev/exit"><img src="http://localhost:8080/mydev/images/banka.png">退出登录</a>
                                    </li>
                                </ul>
                            </div>
                        </li>
                    </ul>
                </div>
            </c:when>
            <c:otherwise>



            </c:otherwise>
        </c:choose>

    </div>
</div>

<!--图片-->
<div class="user-banner" style="background-image:url(http://localhost:8080/mydev/images/reba_D.jpg);width: 100%;height: 250px;" data-v-486b535c></div>
<!--中部导航-->
<ul class="layui-nav layui-bg-green" style="background-color: #ffa800!important;">
    <li class="layui-nav-item"><a href=""></a></li>
    <li class="layui-nav-item"><a href=""></a></li>
    <li class="layui-nav-item"><a href=""></a></li>
    <li class="layui-nav-item"><a href=""></a></li>
    <li class="layui-nav-item"><a href=""></a></li>
    <li class="layui-nav-item"><a href=""></a></li>
    <li class="layui-nav-item"><a href=""></a></li>
    <li class="layui-nav-item"><a href=""></a></li>
    <li class="layui-nav-item"><a href=""></a></li>
    <li class="layui-nav-item"><a href=""></a></li>
    <li class="layui-nav-item"><a href=""></a></li>
    <li class="layui-nav-item"><a href=""></a></li>
    <li class="layui-nav-item layui-this"><a href="">我的游记</a></li>
    <li class="layui-nav-item"><a href="http://localhost:8080/mydev/myfoot/answer/${memberall.userId}">我的问答</a></li>
    <li class="layui-nav-item"><a href="http://localhost:8080/mydev/myfoot/collect/${memberall.userId}">我的收藏</a></li>
    <li class="layui-nav-item"><a href="http://localhost:8080/mydev/myfoot/mapview/${memberall.userId}">我的足迹</a></li>

</ul>
<!--下部详细-->
<div class="center clearfix">
    <div class="side_bar note_side flt1">
        <div class="MUsers">

            <div class="MUsersDetail">
                <div class="MUsersAtom">
                    <ul class="clearfix">
                    </ul>
                </div>
            </div>

        </div>
    </div>
    <div class="content flt2">
        <div class="common_block my_notes">
            <div class="common_title clearfix">
                <div class="MAvaMore clearfix">
                    <div class="MAvaNums">
                        <strong>${memtravel.size()}</strong>
                        <p>游记</p>
                    </div>
                    <div class="MAvaNums">
                        <strong>${praise}</strong>
                        <p>点赞</p>
                    </div>

                </div>
            </div>
            <div id="article_list">
                <div class="notes_default_v2">



                    <c:forEach var="travel" items="${memtravel}">
                        <div class="tn-item clearfix">
                            <div class="tn-image">
                                <a href="http://localhost:8080/mydev/travel/${travel.travId}" target="_blank">
                                    <img class="" src="${travel.travPic}" style="display: inline;">

                                </a>
                            </div>
                            <div class="tn-wrapper">
                                <dl>
                                    <dt>
                                        <a href="http://localhost:8080/mydev/travel/${travel.travId}" target="_blank">${travel.travTitle}</a>
                                        <a href="" style="width: 40px;height: 26px;float: right; position: relative;bottom: 26px;" onclick="deletetra(${travel.travId})"> 删除</a>

                                    </dt>
                                    <dd>
                                        <a href="http://localhost:8080/mydev/travel/${travel.travId}" target="_blank">${travel.travOther1}</a>
                                    </dd>
                                </dl>
                                <div class="tn-extra">
                    <span class="tn-ding">

                        <em>${travel.travPraise}</em>
                        <img src="http://localhost:8080/mydev/images/ding_D.png">
                    </span>
                                    <span class="tn-place"><img src="http://localhost:8080/mydev/images/dibiao.png"><a href="javascript:void(0);" class="_j_gs_item" rel="nofollow" data-name="越南" data-objid="10180" data-type="2">${travel.travLoction}</a>，by</span>
                                    <span class="tn-user">
                        <a href="" target="_blank" rel="nofollow">
                            <img src="http://localhost:8080/mydev/${userIn.userPicture}">
                           ${userIn.userName}
                        </a>
                    </span>
                                    <span  class="tn-nums"><img src="http://localhost:8080/mydev/images/ck_D.png">${travel.travLooknumber}</span>
                                </div>
                            </div>
                        </div>
                    </c:forEach>

                    <script>
                        function deletetra(travelid){


                            var ur = "";

                             $.ajax({
                                 type:"DELETE",
                                 url:"http://localhost:8080/mydev/mytravel/delete",
                                 data:{
                                     travelid : travelid,
                                 },
                                 datatype:"json",
                               success:function (result){
                                     console.log("成功");
                                   $(this).parentNode.parentNode.parentNode.parentNode.attr("display","none");
                                     // this.parentNode.parentNode.parentNode.parentNode.remove;
                                   <%--location.reload("http://localhost:8080/mydev/myhome/mytravel/"+${memberall.userId});--%>
                                 },
                                 error:function (result) {
                                     console.log("失败");
                                     //this.parentNode.parentNode.parentNode.parentNode.display = "none";
                                     location.reload("http://localhost:8080/mydev/myhome/mytravel/" +${memberall.userId})

                                 }
                             })


                        }

                    </script>





                    <a href="http://localhost:8080/mydev/write/travel" title="写游记" class="btn_write"><i></i>写游记</a>
                </div>
            </div>
            <div align="right" class="m-pagination _j_pager_content">
            </div>
        </div>
    </div>
</div>
<!--底部-->
<div class="buttom">
    <div class="col-md-2 "></div>
    <div class="col-md-2 left-buttom">
        <p style="font-size: 15px">逍遥游攻略网</p>
        <p>年轻人更爱用的攻略</p>
        <p>逍遥游攻略网</p>
        <p>无数旅行者共同打造的"旅行神器"</p>
        <p>  60,000 多个全球旅游目的地 </p>
        <p>  600,000 个细分目的地新玩法</p>
        <p>  760,000,000 次攻略下载</p>
    </div>
    <div class="col-md-2 mid-buttom">
        <p style="font-size: 15px">关于我们</p>
        <a href="">关于逍遥游</a> &nbsp <a href="">联系我们</a> </br>
        <a href="">隐私政策</a> &nbsp <a href="">商标声明</a> </br>
        <a href="">服务协议</a> &nbsp <a href="">游记协议</a> </br>
        <a href="">商城平台服务协议</a> </br>
        <a href="">网络信息侵权通知引导</a><br>
        <a href="">旅游网服务监督员</a>



    </div>
    <div class="col-md-2 right-buttom">
        <p  style="font-size: 15px">旅行服务</p>
        <a href="">旅游攻略</a> &nbsp <a href="">酒店预订</a> </br>
        <a href="">旅游特价</a> &nbsp <a href="">国际租车</a> </br>
        <a href="">旅游问答</a> &nbsp <a href="">旅游保险</a> </br>
        <a href="">旅游指南</a> &nbsp <a href="">订火车票</a> </br>
        <a href="">旅游资讯</a> &nbsp <a href="">APP下载</a> </br>

    </div>

    <div class="col-md-1 link-buttom">
        <img src="http://localhost:8080/mydev/images/erweima1B.png"></br>
        <p>app下载</p>
    </div>
    <div class="col-md-1 link-buttom">
        <img src="http://localhost:8080/mydev/images/erweima2B.png">
        <p>公众号</p>
    </div>
    <div class="col-md-1 link-buttom">
        <img src="http://localhost:8080/mydev/images/erweima3B.png">
        <p>订阅号</p>
    </div>


</div>
<div class="dixian">我们是有底线的</div>

<script>
    layui.use('element', function(){
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

        //监听导航点击
        element.on('nav(demo)', function(elem){
            //console.log(elem)
            layer.msg(elem.text());
        });
    });
</script>
</body>
</html>
